package routers

import (
	"github.com/gin-gonic/gin"
	"my-gin-tiktok/app/controllers"
	"my-gin-tiktok/app/middlewares"
)

func InitCommentRouter(router *gin.RouterGroup) {
	comment := router.Group("comment")
	comment.Use(middlewares.JWTAuthMiddleware())
	comment.POST("/action", controllers.CommentAction)
	comment.GET("/list", controllers.CommentList)
	return
}
